//
//  UIBarButtonItem+Util.m
//
//  Created by SKY
//  Copyright © 翊sky. All rights reserved.
//

#import "UIBarButtonItem+Util.h"
#import "UIButton+Util.h"

@implementation UIBarButtonItem (Util)

//图片,标题
+(UIBarButtonItem *)barButtonWithTitle:(NSString *)title titleColor:(UIColor *)titleColor fontSize:(CGFloat)fontSize frame:(CGRect)frame image:(NSString *)image target:(id)target sel:(SEL)selector{
    
    UIButton *btn = [UIButton buttonWithLocalImage:image title:title titleColor:titleColor fontSize:fontSize frame:frame target:target sel:selector];
    
    UIBarButtonItem *barButtonItem = [[UIBarButtonItem alloc]initWithCustomView:btn];
    return barButtonItem;
}

@end
